/*******************************************************************************
 * Copyright (c) 2011 Grupo de Sistemas Inteligentes (GSI) - DIT UPM
 *
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *******************************************************************************/
package es.upm.dit.gsi.eclipse.jadex.diagram.eclipseJadex.diagram.navigator;

import org.eclipse.jface.viewers.ViewerSorter;

/**
 * @generated
 */
public class JadexAgentsNavigatorSorter extends ViewerSorter {

	/**
	 * @generated
	 */
	private static final int GROUP_CATEGORY = 2003;

	/**
	 * @generated
	 */
	public int category(Object element) {
		if (element instanceof es.upm.dit.gsi.eclipse.jadex.diagram.eclipseJadex.diagram.navigator.JadexAgentsNavigatorItem) {
			es.upm.dit.gsi.eclipse.jadex.diagram.eclipseJadex.diagram.navigator.JadexAgentsNavigatorItem item = (es.upm.dit.gsi.eclipse.jadex.diagram.eclipseJadex.diagram.navigator.JadexAgentsNavigatorItem) element;
			return es.upm.dit.gsi.eclipse.jadex.diagram.eclipseJadex.diagram.part.JadexAgentsVisualIDRegistry
					.getVisualID(item.getView());
		}
		return GROUP_CATEGORY;
	}

}
